﻿@model PartyInvites.Models.GuestResponse

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <link href="~/Content/bootstrap.css" rel="stylesheet" />
    <link href="~/Content/bootstrap-theme.css" rel="stylesheet" />
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/Styles.css" rel="stylesheet" />
    <title>RsvpForm</title>
</head>
<body>
    <div class="panel panel-success">
        <div class="panel-heading text-center"><h4>RSVP</h4></div>
   <div class="panel-body">
         @using (Html.BeginForm())
    {
        @Html.ValidationSummary()
             <div class="form-group">
                 <label>Your name:</label>
       @Html.TextBoxFor(x=>x.Name,new {@class="formcontrol"})
                 </div>
                <div class="form-group">
                    <label>Your Email:</label>
                    @Html.TextBoxFor(x => x.Email, new { @class = "formcontrol" })
                </div>
                <div class="form-group">
                    <label>Your Phone:</label>
                    @Html.TextBoxFor(x => x.Phone, new { @class = "formcontrol" })
                </div>
                <div class="form-group">
        <label>you attend?</label> 
        @Html.DropDownListFor(x => x.WillAttend, new[]
   {
       new SelectListItem()
       {
           Text="Yes,I'll be there",
           Value=bool.TrueString
       },
       new SelectListItem()
       {
        Text="No,I can't come",
        Value =bool.FalseString }
       },"Choose an option",new { @class="formcontrol"})    
        </div>
        <div class="text-center">
        <input class="btn btn-success" type="submit" value="Submit RSVP"/>
   </div>
            }
            </div>
            </div>
</body>
</html>
